package com.share.design.observer;

import lombok.Getter;
import lombok.Setter;

/**
 * author:caifan
 * date:2020/2/4
 */
public class RingEvent extends EventObject {
    @Getter
    @Setter
    private boolean sound;//true 上课铃声 false下课铃声

    public RingEvent(Object source, boolean sound) {
        super(source);
        this.sound = sound;
    }
}
